<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{@$pageTitle@}</title>
{#include file="Public:head" /#}
</head>

<body id="mainBody">
<div id="all">
  {#rabbet id="tips" /#}
  <div class="box2 w pr">
    <div class="box2_wrap">
      <div class="box2_top">
        <h4 class="pl10 fb">管理员管理 - 编辑管理员</h4>
      </div>
      <div class="box2_main">
        <form action="" name="editForm" method="post">
          <input type="hidden" name="id" value="{@$data.id@}" />
          <table class="table3 w rowPoint">
            <tr>
              <td width="120" class="tr">管理员：</td>
              <td>{@$data.admin_name@} <span class="f-grey64">( ID:{@$data.id@} )</span></td>
            </tr>
            <tr>
              <td class="tr">系统管理组：</td>
              <td>{#eq name='data.id' value="1"#}超级管理员<input type="hidden" name="group_id" value="1" />{#else/#}
                <select name="group_id" class="select1 w100">
                  {#volist name="sortList" id="sort"#}
                  <option value="{@$sort.id@}" {#eq name="data.group_id" value="$sort.id"#}selected="selected"{#/eq#}>{@$sort.group_name@}</option>
                  {#/volist#}
                </select>
                  {#/eq#}
                <span class="note">* 提供管理员分组，不同的管理组拥有不同管理权限</span>
              </td>
            </tr>
            <tr>
              <td class="tr">管理员状态：</td>
              {#eq name='data.id' value="1"#}
              <td><span class="f-red">超级管理员不能禁用</span><input type="hidden" name="status" value="1" /></td>
              {#else/#}
              <td><input type="radio" name="status" value="1" class="radio1" {#eq name="data.status" value="1"#}checked="checked"{#/eq#} />&nbsp;启用&nbsp;&nbsp;<input type="radio" name="status" value="0" class="radio1" {#eq name="data.status" value="0"#}checked="checked"{#/eq#} /> 禁用<span class="note">* 管理员被禁用以后将无法登录后台进行管理操作</span></td>
              {#/eq#}
            </tr>
            <tr>
              <td class="tr">新密码：</td>
              <td><input type="password" name="password" class="input1 w150" /><span class="note">* 若不修改请留空</span></td>
            </tr>
            <tr>
              <td class="tr">确认密码：</td>
              <td><input type="password" name="repassword" class="input1 w150" /></td>
            </tr>
            <tr>
              <td class="tr">注册时间：</td>
              <td>{@$data.reg_time|date="Y-m-d H:i:s",###@}</td>
            </tr>
            <tr>
              <td class="tr">最近登录时间：</td>
              <td>{#empty name="data.last_login_time"#}-{#else/#}{@$data.last_login_time|date="Y-m-d H:i:s",###@}{#/empty#}</td>
            </tr>
            <tr>
              <td class="tr">累计登录次数：</td>
              <td>{@$data.login_times@} 次</td>
            </tr>
          </table>
          <div class="manage1"><input type="button" id="enterResponse" onclick="btnSubmit('form[name=editForm]', 'admin.php?m=admin&a=adminedit&url={@$backUrl@}');" value="提交保存" class="btn2 ml130" /></div>
        </form>
      </div>
    </div>
    <div class="box3_lt pa"></div>
    <div class="box3_rt pa"></div>
  </div>
</div>
</body>
</html>
